package com.huarui.initialItem.model;

import java.math.BigDecimal;

import org.ewaf.framework.model.IDataObject;

public class InitialItem implements IDataObject{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final Integer ERRORTYPE_CORRECT=0;
	public static final Integer ERRORTYPE_ERROR=1;
	public static final Integer ERRORTYPE_WARN=2;
	private Integer id;
	private Integer initialId; //  期初单ID`
	private Integer partId; //零件ID
	private String code;	// 编码(冗余字段) NOT NULL
	private Integer source;//来源(原厂，合作厂中国，合作厂进口，非合作厂中国，非合作厂进口)
	private String name;  //零件名称(冗余字段)NOT NULL
	private String nameEn;//英文名称(冗余字段)
	private String pyCode;	//拼音码(冗余字段)
	private String measurementUnit; //计量单位(冗余字段)
	private Integer partCategoryId;//零件分类(冗余字段)
	private String level1Name;//一级分类名称(冗余字段)NOT NULL
	private String level2Name;//二级分类名称(冗余字段)NOT NULL
	private Integer level1Id;//一级分类ID(冗余字段)NOT NULL
	private String brand;//品牌
	private String origin; //产地
	private BigDecimal cost; //进价
	private BigDecimal retailPrice; //售价
	private BigDecimal insurancePrice; //保险价
	private BigDecimal minPrice; //最低售价
	private Integer quantity;//实际数量
	private BigDecimal costAmount; //进价金额
	private String tempName;//上传名称
	private String shelf;//仓位
	private Integer maxOnHand;//上限库存数
	private Integer minOnHand;//下限库存数
	private String swapCode;//互换码
	private Integer storeId; //仓库ID
	private String storeName;//仓库名
	private String checkResult; //错误信息
	private Integer errorType;//错误类型(0=正确,1=错误,2=警告)
	private String carModel; //车型
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return
	 */
	public Integer getInitialId() {
		return initialId;
	}

	public void setInitialId(Integer initialId) {
		this.initialId = initialId;
	}

	public Integer getPartId() {
		return partId;
	}

	public void setPartId(Integer partId) {
		this.partId = partId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public String getPyCode() {
		return pyCode;
	}

	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}

	public String getMeasurementUnit() {
		return measurementUnit;
	}

	public void setMeasurementUnit(String measurementUnit) {
		this.measurementUnit = measurementUnit;
	}


	public Integer getPartCategoryId() {
		return partCategoryId;
	}

	public void setPartCategoryId(Integer partCategoryId) {
		this.partCategoryId = partCategoryId;
	}

	public String getLevel1Name() {
		return level1Name;
	}

	public void setLevel1Name(String level1Name) {
		this.level1Name = level1Name;
	}

	public String getLevel2Name() {
		return level2Name;
	}

	public void setLevel2Name(String level2Name) {
		this.level2Name = level2Name;
	}


	public Integer getLevel1Id() {
		return level1Id;
	}

	public void setLevel1Id(Integer level1Id) {
		this.level1Id = level1Id;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public String getShelf() {
		return shelf;
	}

	public void setShelf(String shelf) {
		this.shelf = shelf;
	}

	public Integer getMaxOnHand() {
		return maxOnHand;
	}

	public void setMaxOnHand(Integer maxOnHand) {
		this.maxOnHand = maxOnHand;
	}

	public Integer getMinOnHand() {
		return minOnHand;
	}

	public void setMinOnHand(Integer minOnHand) {
		this.minOnHand = minOnHand;
	}

	public String getSwapCode() {
		return swapCode;
	}

	public void setSwapCode(String swapCode) {
		this.swapCode = swapCode;
	}



	public Integer getStoreId() {
		return storeId;
	}

	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}

	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}


	public BigDecimal getCost() {
		return cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	public BigDecimal getRetailPrice() {
		return retailPrice;
	}

	public void setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
	}

	public BigDecimal getInsurancePrice() {
		return insurancePrice;
	}

	public void setInsurancePrice(BigDecimal insurancePrice) {
		this.insurancePrice = insurancePrice;
	}

	public BigDecimal getMinPrice() {
		return minPrice;
	}

	public void setMinPrice(BigDecimal minPrice) {
		this.minPrice = minPrice;
	}


	public BigDecimal getCostAmount() {
		return costAmount;
	}

	public void setCostAmount(BigDecimal costAmount) {
		this.costAmount = costAmount;
	}



	public String getCheckResult() {
		return checkResult;
	}

	public void setCheckResult(String checkResult) {
		this.checkResult = checkResult;
	}

	public Integer getErrorType() {
		return errorType;
	}

	public void setErrorType(Integer errorType) {
		this.errorType = errorType;
	}

	public String getTempName() {
		return tempName;
	}

	public void setTempName(String tempName) {
		this.tempName = tempName;
	}

	public String getCarModel() {
		return carModel;
	}

	public void setCarModel(String carModel) {
		this.carModel = carModel;
	}


	

}
